package com.zscat.mallplus.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zscat.mallplus.utils.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品评价表
 * </p>
 *
 * @author zscat
 * @since 2019-04-19
 */
@Data
@ApiModel
@TableName("pms_comment")
public class PmsComment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Long id;

    @TableField(exist = false)
    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @TableField("product_id")
    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @TableField("member_id")
    @ApiModelProperty(hidden = true)
    private Long memberId;

    @TableField("member_nick_name")
    @ApiModelProperty(hidden = true)
    private String memberNickName;

    @TableField("product_name")
    @ApiModelProperty(value = "商品名称")
    private String productName;

    /**
     * 评价星数：0->5
     */
    @ApiModelProperty(value = "评价等级")
    private Integer star;

    /**
     * 评价的ip
     */
    @TableField("member_ip")
    @ApiModelProperty(hidden = true)
    private String memberIp;

    @TableField("create_time")
    @ApiModelProperty(hidden = true)
    private Date createTime;

    /**
     * 显示状态：0->显示；1->不显示
     */
    @TableField("show_status")
    @ApiModelProperty(hidden = true)
    private Integer showStatus;

    /**
     * 购买时的商品属性
     */
    @TableField("product_attribute")
    @ApiModelProperty(value = "商品属性")
    private String productAttribute;

    @TableField("collect_couont")
    @ApiModelProperty(hidden = true)
    private Integer collectCouont;

    @TableField("read_count")
    @ApiModelProperty(hidden = true)
    private Integer readCount;

    @ApiModelProperty(value = "评价内容")
    private String content;

    /**
     * 上传图片地址，以逗号隔开
     */
    @ApiModelProperty(value = "上传图片，多张图片用逗号隔开")
    private String pics;

    /**
     * 评论用户头像
     */
    @TableField("member_icon")
    @ApiModelProperty(hidden = true)
    private String memberIcon;

    @TableField("replay_count")
    @ApiModelProperty(hidden = true)
    private Integer replayCount;

    /**
     * 是否匿名：0->是；1->否
     */
    @TableField("anonymous_status")
    @ApiModelProperty(value = "是否匿名：0->是；1->否")
    private Integer anonymousStatus;

    @TableField("store_id")
    @ApiModelProperty(value = "科技馆ID")
    private Integer storeId;

    /**
     * 回复内容
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "回复内容")
    private String replayContent;

    /**
     * 回复时间
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "回复时间")
    private Date replayCreateTime;

    /**
     * 评价等级字符串
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "评价等级字符串，差评：1；中评：2,3；好评：4,5")
    private String starStr;

    @TableField(exist = false)
    @ApiModelProperty(value = "当前页")
    private Integer pageNum;

    @TableField(exist = false)
    @ApiModelProperty(value = "每页显示条数")
    private Integer pageSize;
}
